import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';

import '../../../helper/utils/color.dart';


/// @Author : 王亚东

/// @Time : On 2021/11/24 15:41



class RegisterSuccessPage extends StatelessWidget {
  const RegisterSuccessPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white,
      body: Column(
        children: [
          Align(alignment: Alignment.topLeft,child: SafeArea(child: GestureDetector(child: Padding(child: Image.asset('assets/images/x.png',width: 18.r,height:18.r,),padding: EdgeInsets.all(15),),onTap: (){Get.back();},)),),

          Container(margin: EdgeInsets.only(top: 50,bottom: 25),child: Image.asset('assets/images/icon_success.png',width: 130.r,height: 130.r,),),
          Text('恭喜您，注册成功!',style: TextStyle(color: ColorsUtil.title,fontSize: 17.sp,fontFamily: 'pingfangB'),),
          GestureDetector(child: Container(child: Center(child: Text('填写详细信息',
            style: TextStyle(
                color: Colors.white, fontSize: 18.sp,fontFamily: 'pingfangB'),),),
            decoration: BoxDecoration(
                borderRadius: BorderRadius.all(Radius.circular(25)),
                color: ColorsUtil.theme),
            padding: EdgeInsets.all(12),
            margin: EdgeInsets.fromLTRB(20,95,20,20),), onTap: () {
            Map map = {'url':'https://www.szzfyjzx.icu/industrial_internet/index.html#/pagesA/user/role?tag=app'};
            // Map map = {'url':'http://192.168.19.108:8080/#/pagesA/user/role?tag=app'};

            // Get.to(WebviewRolePage(),arguments: map);
            // Get.to(RoleselectPage());
          },),
          Row(children: [
            Text('暂不填写，',style: TextStyle(color: ColorsUtil.content,fontSize: 14.sp),),
            GestureDetector(child: Text('去登录',style: TextStyle(color: Color(0xff576C88),fontSize: 14.sp),),onTap: (){Get.back();},),
          ],mainAxisSize: MainAxisSize.min,)
        ],
      ),
    );
  }
}



 
